package com.ybkj.o2o.sales.manager.impl;

import com.ybkj.o2o.sales.entity.ActivityCouponRule;
import com.ybkj.o2o.sales.manager.ActivityCouponRuleManager;
import com.ybkj.o2o.sales.service.ActivityCouponRuleService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DefaultActivityCouponRuleManager implements ActivityCouponRuleManager {

  @Autowired
  private ActivityCouponRuleService activityCouponRuleService;

  @Override
  public List<ActivityCouponRule> listByActivityId(Long activityId) {
    return activityCouponRuleService.listByActivity(activityId);
  }

  @Override
  public List<ActivityCouponRule> listByCouponRuleId(Long couponRuleId) {
    return activityCouponRuleService.listByCouponRule(couponRuleId);
  }

}
